package com.yl.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yl.model.dto.PassDTO;
import com.yl.model.dto.UserDTO;
import com.yl.model.entity.UserEntity;
import com.yl.model.vo.UserVO;

import java.util.Map;


public interface UserService extends IService<UserEntity> {

	UserEntity getByUsername(String username);

	String getUserAuthorityInfo(Long userId);

	void clearUserAuthorityInfo(String username);

	void clearUserAuthorityInfoByRoleId(Long roleId);

	void clearUserAuthorityInfoByMenuId(Long menuId);


	UserVO info(Long id);

	Page<UserVO> pageList(UserDTO userDto);

	UserVO saveObj(UserEntity entity);

	UserVO updateObj(UserDTO dto);

	Boolean del(Long[] ids);

	Boolean rolePerm(Long userId, Long[] roleIds);

	Boolean repass(String userId);

	Boolean updatePass(PassDTO passDto);

	Map<Object, Object> nav(String username);

	UserEntity getLoginUserName();
}
